import Vue from 'vue'
import App from '@/App.vue'
import router from '@/router'
import store from '@/store'
import '@/plugin/vant'
import 'vant/lib/index.css';
import axios from './http'
//引入lib-flexible 用于设置rem基准值
import "lib-flexible/flexible"
import * as filters from './utils/filter'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';

Vue.use(ElementUI)

Vue.prototype.$api = axios


Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[ key ])
})

Vue.config.productionTip = false
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
